<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小米导航</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.slidizle.js"></script>
    <style>
        .navbar-header a {
            padding: 0
        }

        .navbar-header a img {
            width: 50px;
            height: 50px;
        }

        .navbar-left {
            float: right !important;
        }

        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style-type: none;
        }

        .dowebok {
            width: 1000px;
            height: 400px;
            margin: 0 auto;
        }

        .jumbotron {
          padding: 0,
        }

        /* .jumbotron {} */
    </style>

</head>

<body>
    <!-- <div class="container"> -->
    <nav class="navbar navbar-default">
        <div class="container-fluid container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header ">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><img src="images/logo.png" alt=""></a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="#"> 小米手机</a></li>
                    <li><a href="#">Redmi 红米</a></li>
                    <li><a href="#">电视</a></li>
                    <li><a href="#">笔记本</a></li>
                    <li><a href="#">家电</a></li>
                    <li><a href="#">路由器</a></li>
                    <li><a href="#">智能硬件</a></li>
                    <li><a href="#">服务</a></li>
                    <li><a href="#">社区</a></li>
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="米家显示挂灯">
                    </div>
                    <button type="submit" class="btn btn-default glyphicon glyphicon-search"></button>
                </form>
            </div><!-- /.navbar-collapse -->
        </div>
    </nav>
    <!-- 巨幕 -->
    <div class="jumbotron">
        <div class="container">
            <div id="progressbar-slider" class="dowebok slider--animated" class="dowebok slider--animated"
                data-slidizle>
                <ul data-slidizle-content>
                    <li style="background-image: url('images/01.jpg')"></li>
                    <li style="background-image: url('images/02.jpg')"></li>
                    <li style="background-image: url('images/03.jpg')"></li>
                </ul>

                <div data-slidizle-next>
                    <i class="fa fa-arrow-right"></i>
                </div>
                <div data-slidizle-previous>
                    <i class="fa fa-arrow-left"></i>
                </div>

                <ul data-slidizle-navigation>
                    <li class="slider-navigation-item" style="background-image:url('images/01.jpg')"></li>
                    <li class="slider-navigation-item" style="background-image:url('images/02.jpg')"></li>
                    <li class="slider-navigation-item" style="background-image:url('images/03.jpg')"></li>
                </ul>
                <div class="slider-progressbar"></div>
                <ul data-slidizle-navigation></ul>
            </div>
        </div>
    </div>
    <!-- </div> -->
    <script>
        var $dowebok = $('.dowebok'),
            $progressbar = $('.slider-progressbar'),
            api = $dowebok.data('slidizle_api');

        $dowebok.slidizle({
            loop: true,
            autoPlay: true,
            timeout: 5000
        });

        $dowebok.on('slidizle.change', function (e, api) {
            $progressbar.stop().css('width', 0);
        });

        $dowebok.on('slidizle.pause', function (e, api) {
            $progressbar.stop();
        });

        $dowebok.on('slidizle.play slidizle.resume slidizle.change', function (e, api) {
            if (api.isHover()) return;
            $progressbar.animate({
                width: '100%'
            }, api.getRemainingTimeout());
        });
    </script>

</body>

</html>